package me.cat.oopextends.a04oopextendsdemo4;

public class Student {
    String name;
    int age;
    String school;

    //设置一个默认值
    public Student() {
        //表示调用本类的其他构造方法
        this(null, 0, "南京大学");
    }

    public Student(String name, int age, String school) {
        this.name = name;
        this.age = age;
        this.school = school;
    }
}
